SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{472219ea3b3caa28b655d69c5fc77376ee40c811ff0c7fd42f372839f6d30403}Mutxamel{472219ea3b3caa28b655d69c5fc77376ee40c811ff0c7fd42f372839f6d30403}' OR prCity = 'Mutxamel' OR prZip = 'Mutxamel' OR prStreet LIKE '{472219ea3b3caa28b655d69c5fc77376ee40c811ff0c7fd42f372839f6d30403}Mutxamel{472219ea3b3caa28b655d69c5fc77376ee40c811ff0c7fd42f372839f6d30403}' OR prCountry = 'Mutxamel') AND (prLocation LIKE '{472219ea3b3caa28b655d69c5fc77376ee40c811ff0c7fd42f372839f6d30403}Spain{472219ea3b3caa28b655d69c5fc77376ee40c811ff0c7fd42f372839f6d30403}' OR prCity = 'Spain' OR prZip = 'Spain' OR prStreet LIKE '{472219ea3b3caa28b655d69c5fc77376ee40c811ff0c7fd42f372839f6d30403}Spain{472219ea3b3caa28b655d69c5fc77376ee40c811ff0c7fd42f372839f6d30403}' OR prCountry = 'Spain')